<?php
class LoginFilterAction extends AgriculturalproductsCommonAction {

	/**
	 * 判断用户是否登陆
	 *  
	 */
	function _initialize() {
			// 用户权限检查
		if( ! isset($_SESSION[C('USER_AUTH_KEY')])){
			$this->assign("jumpUrl","__APP__/User/login");
			//设置session
			Session::set(C('USER_AUTH_KEY'),$_REQUEST['username']);
			//Session::set('username',$_REQUEST['username']);
			$this->success ( "您尚未登陆！" );
		}
	}

}
?>